package com.usian.article.controller.v1;

import com.usian.apis.article.ApArticleContentControllerApi;
import com.usian.article.service.ApArticleContentService;
import com.usian.model.article.pojo.ApArticleContent;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/article/api/v1/article_content")
public class ApArticleContentController implements ApArticleContentControllerApi {
@Autowired
private ApArticleContentService apArticlecontentService;
@PostMapping("/save")
    @Override
    public ResponseResult saveArticleContent(@RequestBody ApArticleContent aparticleContent) {
        apArticlecontentService.save(aparticleContent);
        return ResponseResult.okResult("ok");
    }
}
